package cc.eddic.practice.spring.repository;

import cc.eddic.practice.spring.domain.Student;
import cc.eddic.practice.spring.dto.StudentResponse;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;

import javax.transaction.Transactional;
import java.util.List;


public interface StudentRepository extends JpaRepository<Student, Long> {

    @Modifying
    @Transactional
    void deleteByIdIn(List<Long> ids);

//    Page<StudentResponse> findAll(Pageable pageable);
}
